package com.dmg.flowabledemo.task;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

/**
 * 自定义服务任务 也叫java class task
 */
@Slf4j
public class MyServiceTask implements JavaDelegate {
    @Override
    public void execute(DelegateExecution delegateExecution) {
      log.info("当审批完毕之后,自动触发当前的服务任务:{}",delegateExecution.getId());
    }
}
